package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 页面版本历史对象 page_version
 * 
 * @author ruoyi
 * @date 2025-03-30
 */
public class PageVersion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 版本ID */
    private Long id;

    /** 页面ID */
    @Excel(name = "页面ID")
    private Long pageId;

    /** 版本号 */
    @Excel(name = "版本号")
    private Integer versionNumber;

    /** 页面配置JSON */
    private String config;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    
    public void setPageId(Long pageId) 
    {
        this.pageId = pageId;
    }

    public Long getPageId() 
    {
        return pageId;
    }
    
    public void setVersionNumber(Integer versionNumber) 
    {
        this.versionNumber = versionNumber;
    }

    public Integer getVersionNumber() 
    {
        return versionNumber;
    }
    
    public void setConfig(String config) 
    {
        this.config = config;
    }

    public String getConfig() 
    {
        return config;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("pageId", getPageId())
            .append("versionNumber", getVersionNumber())
            .append("config", getConfig())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
} 